<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>邀请新代理</title>
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <link rel="stylesheet" href="/css/all.css"/>
    <link rel="stylesheet" href="/css/list2.css"/>
</head>
<body>
<div class="title">邀请新代理
    <div class="title_left"><a href="{{urlHome('index','getIndex')}}">返回</a></div>
</div>
    <div class="main">
        <ul class="ul1">
            <li>代理:<span>{{$agent['agent_name']}}</span></li>
            <li>授权号：<span>{{$agent['accredit_no']}}</span></li>
            <li>代理级别: <span class="red">{{$agent['lev_str']}}</span></li>
            <li>加入时间： <span>{{date('Y-m-d H:i:s',$agent['accredit_start_time'])}}</span></li>
        </ul>
        @if($levs)
            @foreach($levs as $v)
                <button type="button" onclick="window.location.href='/invite/create?lev={{$v['id']}}'">{{$v['lev_name']}}</button>
            @endforeach
        @else
            <p style="text-align: center;color: lightgray;">暂无数据</p>
        @endif
    </div>
</body>
</html>